﻿/*
 *	Copyright (c) 2009 Queensland University of Technology. All rights reserved.
 *	The QUT Bioinformatics Collection is open source software released under the 
 *	Microsoft Public License (Ms-PL): http://www.microsoft.com/opensource/licenses.mspx.
 */
using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace QUT.Bio.Util {
	/// <summary>
	/// The event types that may be triggered by a Popupwindow.
	/// </summary>

	public enum WindowChangeEventType {
	
		/// <summary>
		/// The window is maximised.
		/// </summary>
		MaximizeUp,
		
		/// <summary>
		/// The window is restored to its non-maximised size.
		/// </summary>
		MaximizeDown,
		
		/// <summary>
		/// The window is made visible.
		/// </summary>
		WindowShown,
		
		/// <summary>
		/// The window is mad invisible.
		/// </summary>
		WindowHidden,
		
		/// <summary>
		/// The window is closed via the close gadget.
		/// </summary>
		WindowClosed,
		
		/// <summary>
		/// The window size has changed.
		/// </summary>
		Resize
	};

	/// <summary>
	/// A delegate that is invoked when a window change occurs.
	/// </summary>
	/// <param name="source">The popup window from which the event originates.</param>
	/// <param name="eventType">The event type.</param>
	
	public delegate void WindowChangeEventHandler( 
		PopupWindow source, 
		WindowChangeEventType eventType 
	);
	
	/// <summary>
	/// Actions that can occur in a PopupDialog.
	/// </summary>
	
	public enum DialogAction {
	
		/// <summary>
		/// The Ok button was clicked.
		/// </summary>
		Ok,
		
		/// <summary>
		/// The Cancel button was clicked.
		/// </summary>
		Cancel
	}
}
